#ifndef PRODUCT_H
#define PRODUCT_H

#include "Bridget.h"
//#include <QtCore>
#include <QtXml>

class Product: public QObject
{
    Q_OBJECT
private:
    QString name;
    int weight;
    double Fat;
    double Protein;
    double Carbohydrate;
    double Energy;
    QDomDocument docProd;

public:
    void setName(QString name1);
    void setWeight(int weight1);
    QString getName();
    int getWeight();
    bool setPar();
    double getFat();
    double getProtein();
    double getCarbohydrate();
    double getEnergy();
    void setFat(double fat);
    void setCarbohydrate(double carbohydrate);
    void setProtein(double protein);
    void setEnergy(double energy);
    void addProduct();
    bool inBase();

/*public slots:
    void addProduct();*/
};

#endif // PRODUCT_H
